<%@ taglib prefix="s" uri="/struts-tags" %>
<%--
  Created by IntelliJ IDEA.
  User: lzy
  Date: 2018/9/9
  Time: 20:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>List</title>
</head>
<body>
<h4 style="color:#990f92">Employee info list</h4>
<s:form action="employee-save" method="POST">
    <s:textfield name="firstName" label="FirstName"/>
    <s:textfield name="lastName" label="LastName"/>
    <s:textfield name="email" label="Email Address"/>
    <s:submit/>
</s:form>
<hr/>
<table cellpadding="10" cellspacing="1" border="1">
    <tr>
        <th>Id</th>
        <th>FirstName</th>
        <th>LastName</th>
        <th>Email</th>
        <th>Edit</th>
        <th>Delete</th>
    </tr>
    <s:iterator value="#request.emps">
        <tr>
            <td>${employeeId}</td>
            <td>${firstName}</td>
            <td>${lastName}</td>
            <td>${email}</td>
            <td><a href="employee-edit.action?employeeId=${employeeId}">Edit</a></td>
            <td><a href="employee-delete.action?employeeId=${employeeId}">Delete</a></td>
        </tr>
    </s:iterator>
</table>
</body>
</html>
